package com.demo2do.fms.entity.supplier.common;

import com.demo2do.core.utils.Alias;

/**
 * 服务供方 公司级别
 * 
 * @author Wy
 *
 */
@Alias("SupplierLevel")
public enum Level {

    FIRST("一级供应商" ,"FIRST"),
    
    SECOND("二级供应商" ,"SECOND");

    private String description;
    
    private String name;

    /**
     * @param description
     * @param name
     */
    private Level(String description ,String name) {
        this.description = description;
        this.name = name;
    }
    
    /**
     * @return
     */
    public boolean isFirst() {
    	return this.equals(FIRST);
    }
    
    /**
     * @return
     */
    public boolean isSecond() {
    	return this.equals(SECOND);
    }

    /**
     * @return
     */
    public int getOrdinal() {
        return this.ordinal();
    }
    
    /**
     * Gets description.
     *
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets description.
     *
     * @param description the description
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
    /**
     * 
     * @return
     */
    public String getName() {
        return name;
    }
    
}
